#include"Stack.h"
#include"Queue.h"

void test()
{
	ST st;
	STInit(&st);
	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);
	STPush(&st, 5);

	STPrint(&st);

	cout << STTop(&st) << endl;

	STPop(&st);
	STPop(&st);
	STPrint(&st);
	STPop(&st);
	STPop(&st);
	STPrint(&st);

	STPush(&st, 88);
	STPush(&st, 89);
	STPush(&st, 90);

	STPrint(&st);

	cout << STSize(&st) << endl;

	STDestroy(&st);
}

void test1()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePrint(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePrint(&q);

	cout << QueueFront(&q) << endl;
	cout << QueueBack(&q) << endl;
	cout << QueueSize(&q) << endl;

	QueueDestory(&q);

}
int main()
{
	//test();
	test1();
	return 0;
}